1. Capture the entire screen screenshot
Copy CodeThe code is as follows:
$im = Imagegrabscreen ();
Imagepng ($im, "myscreenshot.png");
?>
2. Capturing a window capture a Windows (IE for example)
Copy CodeThe code is as follows:
$browser = new
With GD extension call Imagegrabscreen, completely black screen!!! The spread of the method "allow service to interact with the desktop" is no use at all!! And the most bizarre is that I try to use the system to call a C-written EXE to intercept
1. Capture the whole screen ScreenshotCopy codeThe Code is as follows:$ Im = imagegrabscreen ();Imagepng ($ im, “myscreenshot.png ");?>2. Capture a window (IE for example)Copy codeThe Code is as follows:$ Browser = new COM ("InternetExplorer.
1. Intercept the entire screen screenshot
Copy Code code as follows:
$im = Imagegrabscreen ();
Imagepng ($im, "myscreenshot.png");
?>
2. Intercepting a window Capture a Windows (IE for example)
Copy Code code as
Php --- PHP uses the GD library for screenshots. PHP uses the GD library to implement screenshot PHP5.2.2 and later versions. the GD library implements two screenshot functions: imagegrabscreen and imagegrabwindow, which are used to capture the
PHP uses GD library for screenshot
PHP5.2.2 above version of the GD library implemented two screenshots functions Imagegrabscreen and Imagegrabwindow
Screens that intercept the entire screen and intercept a window (same alt+printscreen),
PHP uses the GD library to implement screenshot PHP5.2.2 and later versions. the GD library implements two screenshot functions: imagegrabscreen and imagegrabwindow, which are used to intercept the entire screen and capture the screen of a window
PHP5.2.2 and later versions of the GD Library implement two screenshot functions: imagegrabscreen and imagegrabwindow, which are used to intercept the entire screen and capture the screen of a window (with ALT + PrintScreen) respectively.
1. capture
PHP uses the GD library for Screenshot capturePHP5.2.2 and later versions of the GD Library implement two screenshot functionsImagegrabscreenAndImagegrabwindowIt is used to intercept the entire screen and intercept a window (same as ALT +
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.